package entities;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="jugador")
public class Jugador {

	private int id;
	private float coordenadaX;
	private float coordenadaY;
	
	public Jugador()
	{
		
	}
	
	public Jugador(int pId, float pCoordX, float pCoordY)
	{
		id = pId;
		coordenadaX = pCoordX;
		coordenadaY = pCoordY;
	}
	
	public int getId()
	{
		return id;
	}
	
	public float getCoordenadaX()
	{
		return coordenadaX;
	}
	
	public float getCoordenadaY()
	{
		return coordenadaY;
	}
	
	@XmlElement
	public void setId(int pId)
	{
		this.id = pId;
	}
	
	@XmlElement
	public void setCoordenadaX(float pCoordX)
	{
		this.coordenadaX = pCoordX;
	}
	
	@XmlElement
	public void setCoordenadaY(float pCoordY)
	{
		this.coordenadaY = pCoordY;
	}
	
	@Override
	public String toString() {
		return new StringBuffer(" Id : ").append(this.id).append(" CoordX : ")
				.append(this.coordenadaX).append(" CoordY : ")
				.append(this.coordenadaY).toString();
  }
}
